<template>
  <!-- App 根组件无需渲染内容，保留占位即可 -->
  <slot />
</template>
<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
// #ifdef H5
import { initWxSdk } from '@/utils/wxJssdk'
// import wx from "weixin-jsapi";
// #endif
import { netConfig } from '@/api/net.config'

// 扫码并发保护，避免重复触发
let isScanning = false;

onLaunch(() => {
  
});

onShow(() => {
  console.log("App Show");
});

onHide(() => {
  console.log("App Hide");
});


</script>



<style lang="scss">
page {
  width: 100%;
  height: 100%;
  font-family: PingFang SC, PingFang SC2, -apple-system, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  transform: none !important;
}

image {
  width: 100%;
  height: 100%;
  display: block;
}

/* 整屏背景类名，组件中最大盒子的类名 */


/* 整屏背景类名，组件中最大盒子的类名 */
.uu-bc {
  min-height: 100%;
  background-image: url("/static/common/small-bc.png");
  background-size: 100% 100%;
}

// 状态栏高度
.top_status{
  height: 0;
  width: 100%;
  margin-top: var(--status-bar-height);
}


.container {
  padding: 20rpx 31rpx 0rpx 31rpx;
  /* #ifdef H5 */
  padding-top: 10rpx;
  /* #endif */
  /* min-height: 100%; */
  overflow-x: hidden;
}

/* 在 App.vue 或对应的页面样式中添加 */
.uni-tabbar .uni-tabbar__mid-btn {
  /* 确保按钮不会被点击事件影响显示 */
  pointer-events: auto !important;
}

.uni-tabbar__mid-btn-icon {
  /* 确保图标不会被隐藏 */
  opacity: 1 !important;
  visibility: visible !important;
}

/* 通用样式 */
.scroll-view {
  overflow: auto;
}

/* #ifdef H5 */
/* H5平台隐藏滚动条 */
/* 锁定页面为竖屏显示 */
html,
body {
  width: 100vw;
  height: 100vh;
  font-family: PingFang SC, PingFang SC2, -apple-system, sans-serif;
  overflow: hidden;
  /* 防止横屏时出现滚动条 */
}

/* 横屏提示层 - 仅在横屏时显示 */
.rotate-tip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vh;
  height: 100vw;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg) translate(0, -100%);
  transform-origin: 0 0;
  z-index: 9999;
  display: none;
  /* 默认隐藏 */
}

/* 隐藏全局滚动条 */
::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* 针对 IE 和 Edge */
html {
  -ms-overflow-style: none;
}

/* 针对 Firefox */
body {
  scrollbar-width: none;
}

/* #endif */

/* #ifdef APP-PLUS */
/* App平台隐藏滚动条 */
.scroll-view {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* #endif */

.no-data {
  width: 262rpx;
  height: 242rpx;
  text-align: center;
  font-weight: 500;
  font-size: 27rpx;
  color: #777777;
  line-height: 35rpx;
  transform: translateY(-200rpx);

  image {
    width: 100%;
    height: 100%;
    display: block;
    margin-bottom: 20rpx;
  }

}
</style>
